package com.ms.demo.demo2;

/**
 * @description: 创建TerminalExpression终结表达式
 * @author: ms
 * @create: 2022-10-28 11:30
 */
public class TerminalExpression implements  Expression{

    @Override
    public int interpret(Context context) {
        return context.getValue(this);
    }

}